if (child_info && strcmp (child_info->tag.name, "object") == 0)
{
error_invalid_tag (data, element_name, NULL, error);
- if (child_info)
- free_object_info ((ObjectInfo*)child_info);
return;
}
object_info = state_peek_info (data, ObjectInfo);
if (!object_info || strcmp (object_info->tag.name, "object") != 0)
{
- error_invalid_tag (data, element_name, "object", error);
- if (object_info)
- free_object_info (object_info);
+ error_invalid_tag (data, element_name, NULL, error);
return;
}
gchar *name = NULL;
gchar *context = NULL;
gboolean translatable = FALSE;
+ ObjectInfo *object_info;
int i;
- if (data->stack == NULL)
+ object_info = state_peek_info (data, ObjectInfo);
+ if (!object_info || strcmp (object_info->tag.name, "object") != 0)
{
- error_invalid_tag (data, "property", NULL, error);
+ error_invalid_tag (data, element_name, NULL, error);
return;
}
gboolean after = FALSE;
gboolean swapped = FALSE;
gboolean swapped_set = FALSE;
+ ObjectInfo *object_info;
int i;
- if (data->stack == NULL)
+ object_info = state_peek_info (data, ObjectInfo);
+ if (!object_info || strcmp (object_info->tag.name, "object") != 0)
{
- error_invalid_tag (data, "signal", NULL, error);
+ error_invalid_tag (data, element_name, NULL, error);
return;
}